package com.hashnode.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.hashnode.model.CommonResult;
import com.hashnode.model.Payment;

public class CustomerBlockHandler {
    public static CommonResult handlerException1(BlockException exception){
        return new CommonResult(4444,"自定义global1",new Payment(2022L,"serial002"));
    }

    public static CommonResult handlerException2(BlockException exception){
        return new CommonResult(4444,"自定义global2",new Payment(2022L,"serial002"));
    }
}
